﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmployeeList.aspx.cs" Inherits="WebUI.Pages.EmployeeList"
    MasterPageFile="~/MasterPage/Default.Master" %>

<%@ Register src="../UserControls/EmployeeListControl.ascx" tagname="EmployeeListControl" tagprefix="HRM" %>

<asp:Content runat="server" ContentPlaceHolderID="cphMain">
    <h3>
        Danh sách nhân viên</h3>
    <div style="margin: 5 0 5 0">
        <table cellpadding="2" cellspacing="2">
            <tr>
                <td>Trạng thái:</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlStatus" AutoPostBack="True"
                        OnSelectedIndexChanged="OnFilterChange">
                        <asp:ListItem Text="Tất cả" Value="-1"></asp:ListItem>
                        <asp:ListItem Text="Đang làm việc" Value="1" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="Đã nghỉ việc" Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>Chức vụ:</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlPosition" DataValueField="ID" DataTextField="Name" 
                        AutoPostBack="true" OnSelectedIndexChanged="OnFilterChange">
                    </asp:DropDownList>
                </td>
                <td>Phòng ban:</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlDepartment" DataValueField="ID" DataTextField="Name" 
                    AutoPostBack="true" OnSelectedIndexChanged="OnFilterChange">
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </div>
    
    <div>
        <HRM:EmployeeListControl ID="ucEmployeeList" runat="server" />
    </div>

</asp:Content>
